package org.jeecg.modules.carBlack.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.carBlack.entity.CarBlack;
import org.jeecg.modules.carBlack.mapper.CarBlackMapper;
import org.jeecg.modules.carBlack.service.ICarBlackService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 车辆黑名单
 * @Author: jeecg-boot
 * @Date:   2024-12-24
 * @Version: V1.0
 */
@Service
public class CarBlackServiceImpl extends ServiceImpl<CarBlackMapper, CarBlack> implements ICarBlackService {


    @Override
    public CarBlack getOne(String plateNo) {
        LambdaQueryWrapper<CarBlack> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(CarBlack::getPlateNo, plateNo);
        return baseMapper.selectOne(wrapper);
    }
}
